//
//  IceScoreDetailController.m
//  WuJieLive
//
//  Created by 张瀚坤 on 2017/11/10.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "IceScoreDetailController.h"
#import "IceScoreDetailCell.h"

@interface IceScoreDetailController ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UIView *headerView;
@property (nonatomic , strong) UITableView * tableview;

@end

@implementation IceScoreDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

-(void)setNavi
{
    self.title = @"冻结积分详情";
}

-(void)setUI
{
    self.view.backgroundColor = Color(245, 245, 245);
    self.tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 115, kScreenWidth, kScreenHeight - 120 - 30) style:(UITableViewStyleGrouped)];
    [self.view addSubview:self.tableview];
    self.tableview.delegate = self;
    self.tableview.dataSource = self;
    self.tableview.separatorStyle = UITableViewCellSeparatorStyleNone;
    [self.tableview registerNib:[UINib nibWithNibName:@"IceScoreDetailCell" bundle:nil] forCellReuseIdentifier:@"cell"];
    self.tableview.rowHeight = 60;
    self.tableview.backgroundColor = [UIColor clearColor];
    self.tableview.tableFooterView = [UIView new];
}

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
    UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 30)];
    label.textColor = TextLessImportColor;
    label.text = @"   商品积分统计";
    label.backgroundColor = [UIColor clearColor];
    label.font = FontSize(13);
    return label;
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
    return 30;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    IceScoreDetailCell * cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
